<?php 

/**
 * 公共头部文件
 * @author 冬天的秘密
 * @link http://bbs.itpk.cn
 * @version 1.0
 */

global $_set_html_title;
global $_link_file_array;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="茉莉QQ机器人，新一代智能机器人。" />
<meta name="keywords" content="茉莉QQ机器人,QQ机器人" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0" />
<title><?php echo $_set_html_title; ?></title>
<link rel="stylesheet" href="http://libs.useso.com/js/font-awesome/4.2.0/css/font-awesome.min.css" />
<link rel = "stylesheet" href = "<?php echo CSS_FOLDER . $styleDef; ?>?ver=<?php echo VERSION;?>" type = "text/css" media = "all" />
<?php if (isset($_link_file_array)) { ?>
<?php foreach ($_link_file_array as $link_file) { ?>
<link rel = "stylesheet" href = "<?php echo CSS_FOLDER . $link_file; ?>?ver=<?php echo VERSION;?>" type = "text/css" media = "all" />
<?php } ?>
<?php } ?>
</head>
<body>
<div id = "header">
	<div class = "container">
		<ul id = "navbar" class = "navbar">
			<li><a href = "index.php">首页</a></li>
			<li><a href = "robot.php">机器人</a></li>
			<li><a href = "plugin.php">插件</a></li>
		</ul>
		<div class = "login-set">
			<?php if (LOGIN_STATUS != UserLoginUtil::SUCCESS) { ?>
			<a href = "login.php"><i class = "fa fa-user fa-fw"></i>登录</a>
			<?php } else { ?>
			<a href = "profile.php"><i class = "fa fa-desktop fa-fw"></i><?php echo USER_NAME; ?></a>
			<?php } ?>
		</div>
	</div>
</div>